package com.community.body.dto;

import com.community.body.domain.ZyRepair;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.Date;

/**
 * @author Mi Pro
 */
public class ServicemanDTO extends ZyRepair {

    private Long auserId;
    private String userName;
    private String nickName;
    private String phonenumber;
    private Long deptId;
    private String deptName;
    private Long parentId;
    private String communityName;
    private String filesUrls;

    public ServicemanDTO() {
    }

    public ServicemanDTO(Long repairId, String repairNum, String repairState, Date assignmentTime, Date receivingOrdersTime, Date completeTime, Date cancelTime, Date doorTime, Long assignmentId, Long completeId, String completePhone, String completeName, String remark, String createBy, Date createTime, String updateBy, Date updateTime, Long userId, Long delFlag, String repairContent, Long communityId, String address, String ownerName, String ownerPhone, Long auserId, String userName, String nickName, String phonenumber, Long deptId, String deptName, Long parentId, String communityName, String filesUrls) {
        super(repairId, repairNum, repairState, assignmentTime, receivingOrdersTime, completeTime, cancelTime, doorTime, assignmentId, completeId, completePhone, completeName, remark, createBy, createTime, updateBy, updateTime, userId, delFlag, repairContent, communityId, address, ownerName, ownerPhone);
        this.auserId = auserId;
        this.userName = userName;
        this.nickName = nickName;
        this.phonenumber = phonenumber;
        this.deptId = deptId;
        this.deptName = deptName;
        this.parentId = parentId;
        this.communityName = communityName;
        this.filesUrls = filesUrls;
    }

    public ServicemanDTO(Long auserId, String userName, String nickName, String phonenumber, Long deptId, String deptName, Long parentId, String communityName, String filesUrls) {
        this.auserId = auserId;
        this.userName = userName;
        this.nickName = nickName;
        this.phonenumber = phonenumber;
        this.deptId = deptId;
        this.deptName = deptName;
        this.parentId = parentId;
        this.communityName = communityName;
        this.filesUrls = filesUrls;
    }

    public Long getAuserId() {
        return auserId;
    }

    public void setAuserId(Long auserId) {
        this.auserId = auserId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getFilesUrls() {
        return filesUrls;
    }

    public void setFilesUrls(String filesUrls) {
        this.filesUrls = filesUrls;
    }

    @Override
    public String toString() {
        return "ServicemanDTO{" + "auserId=" + auserId + ", userName='" + userName + '\'' + ", nickName='" + nickName + '\'' + ", phonenumber='" + phonenumber + '\'' + ", deptId=" + deptId + ", deptName='" + deptName + '\'' + ", parentId=" + parentId + ", communityName='" + communityName + '\'' + ", filesUrls='" + filesUrls + '\'' + '}';
    }
}
